home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / gas_251.zip / bin_251 / bfd / hosts / i386bsd.h < prev    next >
C/C++ Source or Header  |  1993-10-20  |  1KB  |  47 lines

  1. #ifndef    hosts_i386bsd_H
  2. /* Intel 386 running any BSD Unix */
  3. #include <fcntl.h>
  4. #include <errno.h>
  5. #include <stdio.h>
  6. #include <stdlib.h>
  7. #include <sys/types.h>
  8. #include <sys/stat.h>
  9. #include <ctype.h>
  10. #include <string.h>
  11. #include <sys/file.h>
  12. #include <machine/param.h>
  13. #include <machine/vmparam.h>
  14.  
  15. #ifndef    O_ACCMODE
  16. #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
  17. #endif
  18.  
  19. #define SEEK_SET 0
  20. #define SEEK_CUR 1
  21.  
  22. #define    HOST_PAGE_SIZE        NBPG
  23. #define    HOST_MACHINE_ARCH    bfd_arch_i386
  24. #define    HOST_TEXT_START_ADDR        USRTEXT
  25.  
  26. /* Jolitz suggested defining HOST_STACK_END_ADDR to
  27.    (u.u_kproc.kp_eproc.e_vm.vm_maxsaddr + MAXSSIZ), which should work on
  28.    both BSDI and 386BSD, but that is believed not to work for BSD 4.4.  */
  29.  
  30. #ifdef __bsdi__
  31. /* This seems to be the right thing for BSDI.  */
  32. #define    HOST_STACK_END_ADDR        USRSTACK
  33. #define HOST_DATA_START_ADDR ((bfd_vma)u.u_kproc.kp_eproc.e_vm.vm_daddr)
  34. #else
  35. /* This seems to be the right thing for 386BSD release 0.1.  */
  36. #define    HOST_STACK_END_ADDR        (USRSTACK - MAXSSIZ)
  37. #endif
  38.  
  39. #define TRAD_UNIX_CORE_FILE_FAILING_SIGNAL(core_bfd) \
  40.   ((core_bfd)->tdata.trad_core_data->u.u_sig)
  41. #define u_comm u_kproc.kp_proc.p_comm
  42.  
  43. #include "fopen-same.h"
  44.  
  45. #define hosts_i386bsd_H
  46. #endif
  47.